
package com.cmc.service.impl;

import java.util.List;

import com.cmc.service.impl.BaseManager;
import com.cmc.model.Generalsetting;
import com.cmc.dao.GeneralsettingDao;
import com.cmc.service.GeneralsettingManager;
/*
* @aegis.mapping
*/
public class GeneralsettingManagerImpl extends BaseManager implements GeneralsettingManager {
    private GeneralsettingDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setGeneralsettingDao(GeneralsettingDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.cmc.service.GeneralsettingManager#getGeneralsettings(com.cmc.model.Generalsetting)
     */
    public List getGeneralsettings(final Generalsetting generalsetting) {
        return dao.getGeneralsettings(generalsetting);
    }

    /**
     * @see com.cmc.service.GeneralsettingManager#getGeneralsetting(String id)
     */
    public Generalsetting getGeneralsetting(final String id) {
        return dao.getGeneralsetting(new Long(id));
    }

    /**
     * @see com.cmc.service.GeneralsettingManager#saveGeneralsetting(Generalsetting generalsetting)
     */
    public void saveGeneralsetting(Generalsetting generalsetting) {
        dao.saveGeneralsetting(generalsetting);
    }

    /**
     * @see com.cmc.service.GeneralsettingManager#removeGeneralsetting(String id)
     */
    public void removeGeneralsetting(final String id) {
        dao.removeGeneralsetting(new Long(id));
    }
    
    public Generalsetting getGeneralsettingBySysIdKey(String sysId, String key)
    {
    	return dao.getGeneralsettingBySysIdKey(sysId, key);
    }
}
